//
//  LAMapSource.h
//  LAMapBasicDemo
//
//  Created by 罗亮富 on 2017/6/16.
//  Copyright © 2017年 2Bulu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CoordinateTransform.h"
#import <FoundationUtilities/FoundationUtilities.h>

//#warning exist use new
@interface LAMapSource : NSObject<NSCoding>
-(nonnull instancetype)initWithUUID:(nonnull NSString *)uuid;
@property (nonnull, nonatomic, strong) NSString * uuid;
@property (nullable, nonatomic, strong) NSString * name;
@property (nullable, nonatomic, strong) NSString * sourceDescription;
@property (nullable, nonatomic, strong) NSString * tileUrlTemplate;

@property (nonatomic) MKZoomScale minZoomScale;
@property (nonatomic) MKZoomScale maxZoomScale;
@property (nonatomic) LACoordinateSystem coordinateSystem;
@property (nonatomic) NSInteger tileSize;
@property (nonatomic) BOOL isSystemMapSource;//地图1.6 版本之后才有 是否是系统图源(指的是是否是 户外助手 提供的图源 区别于用户自建的图源)   默认为NO
#if TARGET_OS_IPHONE
@property (nullable, nonatomic, strong) UIImage * icon;
@property (nullable, nonatomic,copy) UIColor *contourHighLightColor;//等高线hilight级别颜色
@property (nullable, nonatomic,copy) UIColor *contourNorColor; //等高线普通级别颜色
@property (nullable, nonatomic,copy) UIColor *trackNetColor; //路网颜色
#elif TARGET_OS_MAC
@property (nullable, nonatomic, strong) NSImage * icon;
@property (nullable, nonatomic,copy) NSColor *contourHighLightColor;//等高线hilight级别颜色
@property (nullable, nonatomic,copy) NSColor *contourNorColor; //等高线普通级别颜色
@property (nullable, nonatomic,copy) NSColor *trackNetColor; //路网颜色
#endif
//+(NSString *)nameOfMapType:(LAMapType)mapType;
+(nullable NSString *)nameOfCoordinateSystem:(LACoordinateSystem)coordinateSystem;

@end
